﻿#VisualFreeBasic_Form#  Version=5.5.8
Locked=0

[Form]
Name=Form1
ClassStyle=CS_VREDRAW,CS_HREDRAW,CS_DBLCLKS
ClassName=
WinStyle=WS_THICKFRAME,WS_CAPTION,WS_SYSMENU,WS_MINIMIZEBOX,WS_MAXIMIZEBOX,WS_CLIPSIBLINGS,WS_CLIPCHILDREN,WS_VISIBLE,WS_EX_WINDOWEDGE,WS_EX_CONTROLPARENT,WS_EX_LEFT,WS_EX_LTRREADING,WS_EX_RIGHTSCROLLBAR,WS_POPUP,WS_SIZEBOX
Style=3 - 常规窗口
Icon=
Caption=切24字节
StartPosition=1 - 屏幕中心
WindowState=0 - 正常
Enabled=True
Repeat=False
Left=0
Top=0
Width=420
Height=300
TopMost=False
Child=False
MdiChild=False
TitleBar=True
SizeBox=True
SysMenu=True
MaximizeBox=True
MinimizeBox=True
Help=False
Hscroll=False
Vscroll=False
MinWidth=0
MinHeight=0
MaxWidth=0
MaxHeight=0
NoActivate=False
MousePass=False
TransPer=0
TransColor=SYS,25
Shadow=0 - 无阴影
BackColor=SYS,15
MousePointer=0 - 默认
Tag=
Tab=True
ToolTip=
ToolTipBalloon=False
AcceptFiles=False

[TextBox]
Name=Text1
Index=-1
Style=3 - 凹边框
TextScrollBars=0 - 无滚动条
Text=
Enabled=True
Visible=True
MaxLength=0
ForeColor=SYS,8
BackColor=SYS,5
Font=微软雅黑,9,0
TextAlign=0 - 左对齐
PasswordChar=
Locked=False
HideSelection=True
Multiline=False
Uppercase=False
Lowercase=False
Number=False
AutoHScroll=True
AutoVScroll=False
Left=48
Top=31
Width=315
Height=25
Layout=0 - 不锚定
MousePointer=0 - 默认
Tag=
Tab=True
ToolTip=
ToolTipBalloon=False
LeftMargin=0
RightMargin=0
AcceptFiles=False

[Button]
Name=Command3
Index=-1
Caption=选择文件夹
TextAlign=1 - 居中
Ico=
Enabled=True
Visible=True
Default=False
OwnDraw=False
MultiLine=False
Font=微软雅黑,9,0
Left=52
Top=116
Width=133
Height=36
Layout=0 - 不锚定
MousePointer=0 - 默认
Tag=
Tab=True
ToolTip=
ToolTipBalloon=False

[Button]
Name=Command4
Index=-1
Caption=批处理
TextAlign=1 - 居中
Ico=
Enabled=True
Visible=True
Default=False
OwnDraw=False
MultiLine=False
Font=微软雅黑,9,0
Left=245
Top=117
Width=106
Height=35
Layout=0 - 不锚定
MousePointer=0 - 默认
Tag=
Tab=True
ToolTip=
ToolTipBalloon=False


[AllCode]
'这是标准的工程模版，你也可做自己的模版。
'写好工程，复制全部文件到VFB软件文件夹里【template】里即可，子文件夹名为 VFB新建工程里显示的名称
'快去打造属于你自己的工程模版吧。


Function cutting(TXT As String) As Long
   Dim filestr As String = GetFileStr(TXT)
   Dim str12   As String = FF_ClipLeft(filestr ,24)
   Dim As Integer suc = SaveFileStr(TXT & ".ts" ,str12)
   Function = False
End Function

Sub Form1_Command3_BN_Clicked(hWndForm As hWnd ,hWndControl As hWnd) '单击
   Dim nfolder As String = FF_BrowseForFolder(hWndForm ,"Choose" ,ExePath)
   Text1.Text = nfolder
End Sub

Sub Form1_Command4_BN_Clicked(hWndForm As hWnd ,hWndControl As hWnd) '单击
   Dim folder123 As String = Text1.Text
   Dim lName()   As WIN32_FIND_DATAW ,i As Long
   GetDIR(folder123 & "\*.gif" ,lName())
   For i = 0 To UBound(lName)
      If (lName(i).dwFileAttributes And fbDirectory) <> 0 Then
         MsgBox("目录:" & lName(i).cFileName)
      Else
         cutting(folder123 & "\" & lName(i).cFileName)
      End If
   Next
   MsgBox("ok")
End Sub




